import request from '@/utils/request'

// 查询活动风采列表
export function listActivityShow(query) {
  return request({
    url: '/applet/activityShow/list',
    method: 'get',
    params: query
  })
}

// 查询活动风采详细
export function getActivityShow(id) {
  return request({
    url: '/applet/activityShow/' + id,
    method: 'get'
  })
}

// 新增活动风采
export function addActivityShow(data) {
  return request({
    url: '/applet/activityShow',
    method: 'post',
    data: data
  })
}

// 修改活动风采
export function updateActivityShow(data) {
  return request({
    url: '/applet/activityShow',
    method: 'put',
    data: data
  })
}

// 修改活动风采状态
export function changeActivityShowStatus(id, status) {
  return request({
    url: `/applet/activityShow/changeStatus/${id}/${status}`,
    method: 'get'
  })
}


// 删除活动风采
export function delActivityShow(id) {
  return request({
    url: '/applet/activityShow/' + id,
    method: 'delete'
  })
}
